package com.mes_for_xxxxxx.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工艺流程表
 * </p>
 *
 * @author 179005
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("processflow")
@ApiModel(value = "Processflow对象", description = "工艺流程表")
public class Processflow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "所属工艺路线编号")
    private String routeNumber;

    @ApiModelProperty(value = "工单编码")
    private String orderId;

    @ApiModelProperty(value = "产品编号")
    private String productId;

    @ApiModelProperty(value = "当前工序提供的原料数")
    private Integer materialNumber;

    @ApiModelProperty(value = "成品率")
    private Double yield;

    @ApiModelProperty(value = "成品率")
    private Double currYield;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "当前工序")
    private String thisFlow;

    @ApiModelProperty(value = "下一道工序")
    private String nextFlow;

    @ApiModelProperty(value = "执行人")
    private String worker;

    @ApiModelProperty(value = "下一道工序的执行人")
    private String nextWorker;

    @ApiModelProperty(value = "下一道工序的执行车间")
    private String nextRoomCode;

    @ApiModelProperty(value = "执行设备")
    private String equipment;

    @ApiModelProperty(value = "工序开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "当前工序最晚截止日期")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "当前状态 例如待完成，待流转，待接收")
    private Integer status;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value = "记录创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "记录更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "出方上报成品数")
    private Integer firstMaterial;

    @ApiModelProperty(value = "入方上报成品数")
    private Integer secondMaterial;


}
